package GoldMiner.com.ALi;

import javax.tools.Tool;
import java.awt.Toolkit;

/**
 * @author ：ALi
 * @date ：Created in 2021/10/31 10:34
 * @description：金块类
 * @modified By：
 * @version: $
 */
public class Gold extends Object {


    Gold(){
     this.x = (int)(Math.random()*700);
     this.y = (int)(Math.random()*550+300);
     this.width = 52;
     this.height = 52;
     this.flag = false;
     this.m = 30;
     this.count = 4;
     this.type = 1;
     this.img = Toolkit.getDefaultToolkit().getImage("imgs/gold1.gif");
    }

}
class GoldMini extends Gold{
    public GoldMini() {
        this.width = 36;
        this.height = 36;
        this.m = 15;
        this.count = 2;
        this.img = Toolkit.getDefaultToolkit().getImage("imgs/gold0.gif");
    }
}

class GoldPlus extends Gold{
    public GoldPlus() {
        this.x = (int)(Math.random()*650);
        this.width = 105;
        this.height = 105;
        this.m = 60;
        this.count = 8;
        this.img = Toolkit.getDefaultToolkit().getImage("imgs/gold2.gif");
    }
}